import request from '@/utils/request'

// 获取登录日志
export function getLoginLogs(params) {
  return request({
    url: '/logs/login',
    method: 'get',
    params
  })
}

// 清空登录日志
export function clearLoginLogs() {
  return request({
    url: '/logs/login/clear',
    method: 'delete'
  })
}

// 导出登录日志
export function exportLoginLogs(params) {
  return request({
    url: '/logs/login/export',
    method: 'get',
    params,
    responseType: 'blob'
  })
} 